package com.agileboot.domain.airport.inspectionUser.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 检查人员关联表
 * </p>
 */
@Getter
@Setter
@TableName("sir_inspection_user")
@ApiModel(value = "SirInspectionUserEntity对象", description = "检查人员关联表")
public class SirInspectionUserEntity extends BaseEntity<SirInspectionUserEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("检查流程Id")
    @TableField("inspection_id")
    private Long inspectionId;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("是否为组长")
    @TableField("leader_flag")
    private String leaderFlag;

    @Override
    public Serializable pkVal() {
        return this.inspectionId + "-" + this.userId;
    }
}
